using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace Yunwei.Domain.Models.Mapping
{
    public class RestaurantCuisineRelMap : EntityTypeConfiguration<RestaurantCuisineRel>
    {
        public RestaurantCuisineRelMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            // Table & Column Mappings
            this.ToTable("RestaurantCuisineRel");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.Restaurant_Id).HasColumnName("Restaurant_Id");
            this.Property(t => t.Cuisine_Id).HasColumnName("Cuisine_Id");
        }
    }
}
